forum

home / developersection / forums / how to convert arraylist (arraylist<t>) from array (t[])

How to convert ArrayList (ArrayList<T>) from array (T[])

Royce Roy 2007 09-Apr-2015

I have an array that is initialized like:

Element[] array = {new Element(1), new Element(2), new Element(3)};

I would like to convert this array into an object of the ArrayList class.

ArrayList<Element> arraylist = ???;

Updated on 09-Apr-2015
Royce Roy

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By